var socket = new SockJS('http://' + window.location.host + '/stomp_global_notice')
var stompClient = Stomp.over(socket)
stompClient.connect({}, function () {
    stompClient.subscribe('/global_notice', function (notice_frame) {
        alert(notice_frame.body)
    })
})